﻿///////////////////////////////////////////////////////////////
// This is generated code. 
//////////////////////////////////////////////////////////////
// Code is generated using LLBLGen Pro version: 2.6
// Code is generated on: 2011年7月5日 11:37:44
// Code is generated using templates: SD.TemplateBindings.SqlServerSpecific.NET20
// Templates vendor: Solutions Design.
// Templates version: 
//////////////////////////////////////////////////////////////
using System;
using System.Collections;
using System.Data;

using SD.LLBLGen.Pro.ORMSupportClasses;

namespace CARMSData.HelperClasses
{
	/// <summary>
	/// Singleton implementation of the PersistenceInfoProvider. This class is the singleton wrapper through which the actual instance is retrieved.
	/// </summary>
	/// <remarks>It uses a single instance of an internal class. The access isn't marked with locks as the PersistenceInfoProviderBase class is threadsafe.</remarks>
	internal sealed class PersistenceInfoProviderSingleton
	{
		#region Class Member Declarations
		private static readonly IPersistenceInfoProvider _providerInstance = new PersistenceInfoProviderCore();
		#endregion
		
		/// <summary>private ctor to prevent instances of this class.</summary>
		private PersistenceInfoProviderSingleton()
		{
		}

		/// <summary>Dummy static constructor to make sure threadsafe initialization is performed.</summary>
		static PersistenceInfoProviderSingleton()
		{
		}

		/// <summary>Gets the singleton instance of the PersistenceInfoProviderCore</summary>
		/// <returns>Instance of the PersistenceInfoProvider.</returns>
		public static IPersistenceInfoProvider GetInstance()
		{
			return _providerInstance;
		}
	}

	/// <summary>Actual implementation of the PersistenceInfoProvider. Used by singleton wrapper.</summary>
	internal class PersistenceInfoProviderCore : PersistenceInfoProviderBase
	{
		/// <summary>Initializes a new instance of the <see cref="PersistenceInfoProviderCore"/> class.</summary>
		internal PersistenceInfoProviderCore()
		{
			Init();
		}

		/// <summary>Method which initializes the internal datastores with the structure of hierarchical types.</summary>
		private void Init()
		{
			base.InitClass((38 + 0));
			InitActionEntityMappings();
			InitActionGridColumnEntityMappings();
			InitColumnToActionEntityMappings();
			InitCompanyEntityMappings();
			InitConfigurationEntityMappings();
			InitCountryEntityMappings();
			InitCustomerEntityMappings();
			InitDepartmentEntityMappings();
			InitDictionaryEntityMappings();
			InitDictionaryCategoryEntityMappings();
			InitG100EntityMappings();
			InitG102EntityMappings();
			InitG103EntityMappings();
			InitG131EntityMappings();
			InitG132EntityMappings();
			InitGlossaryEntityMappings();
			InitLogEntityMappings();
			InitMailEntityMappings();
			InitMailTaskEntityMappings();
			InitMessageEntityMappings();
			InitReportCategoryEntityMappings();
			InitReportCategoryToTemplateEntityMappings();
			InitReportFlowEntityMappings();
			InitReportHeaderEntityMappings();
			InitReportOneEntityMappings();
			InitReportPropertyEntityMappings();
			InitReportStatusToButtonEventEntityMappings();
			InitReportTwoEntityMappings();
			InitReportValueEntityMappings();
			InitRoleEntityMappings();
			InitRoleActionEntityMappings();
			InitSalaryLevelEntityMappings();
			InitTemplateEntityMappings();
			InitTemplateToReportCategoryEntityMappings();
			InitUserEntityMappings();
			InitUserActionEntityMappings();
			InitUserPermissionEntityMappings();
			InitUserRoleEntityMappings();

		}


		/// <summary>Inits ActionEntity's mappings</summary>
		private void InitActionEntityMappings()
		{
			base.AddElementMapping( "ActionEntity", "CARMS", @"dbo", "Action", 11 );
			base.AddElementFieldMapping( "ActionEntity", "ActionId", "ActionID", false, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 0 );
			base.AddElementFieldMapping( "ActionEntity", "ActionName", "ActionName", false, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 1 );
			base.AddElementFieldMapping( "ActionEntity", "ParentId", "ParentID", false, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 2 );
			base.AddElementFieldMapping( "ActionEntity", "NavigateUrl", "NavigateUrl", false, (int)SqlDbType.NVarChar, 500, 0, 0, false, "", null, typeof(System.String), 3 );
			base.AddElementFieldMapping( "ActionEntity", "IsActive", "IsActive", false, (int)SqlDbType.Bit, 0, 0, 0, false, "", null, typeof(System.Boolean), 4 );
			base.AddElementFieldMapping( "ActionEntity", "ImageUrl", "ImageUrl", false, (int)SqlDbType.NVarChar, 500, 0, 0, false, "", null, typeof(System.String), 5 );
			base.AddElementFieldMapping( "ActionEntity", "SortIndex", "SortIndex", false, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 6 );
			base.AddElementFieldMapping( "ActionEntity", "CreateDate", "CreateDate", false, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 7 );
			base.AddElementFieldMapping( "ActionEntity", "Description", "Description", true, (int)SqlDbType.NVarChar, 500, 0, 0, false, "", null, typeof(System.String), 8 );
			base.AddElementFieldMapping( "ActionEntity", "IsShowEventButton", "IsShowEventButton", false, (int)SqlDbType.Bit, 0, 0, 0, false, "", null, typeof(System.Boolean), 9 );
			base.AddElementFieldMapping( "ActionEntity", "DbtableName", "DBTableName", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 10 );
		}
		/// <summary>Inits ActionGridColumnEntity's mappings</summary>
		private void InitActionGridColumnEntityMappings()
		{
			base.AddElementMapping( "ActionGridColumnEntity", "CARMS", @"dbo", "ActionGridColumn", 17 );
			base.AddElementFieldMapping( "ActionGridColumnEntity", "GridColumnId", "GridColumnID", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 0 );
			base.AddElementFieldMapping( "ActionGridColumnEntity", "ActionId", "ActionID", false, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 1 );
			base.AddElementFieldMapping( "ActionGridColumnEntity", "ColumnName", "ColumnName", false, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 2 );
			base.AddElementFieldMapping( "ActionGridColumnEntity", "ColumnDataType", "ColumnDataType", false, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 3 );
			base.AddElementFieldMapping( "ActionGridColumnEntity", "IfShow", "IfShow", false, (int)SqlDbType.Bit, 0, 0, 0, false, "", null, typeof(System.Boolean), 4 );
			base.AddElementFieldMapping( "ActionGridColumnEntity", "IfSort", "IfSort", false, (int)SqlDbType.Bit, 0, 0, 0, false, "", null, typeof(System.Boolean), 5 );
			base.AddElementFieldMapping( "ActionGridColumnEntity", "SortIndex", "SortIndex", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 6 );
			base.AddElementFieldMapping( "ActionGridColumnEntity", "HeaderText", "HeaderText", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 7 );
			base.AddElementFieldMapping( "ActionGridColumnEntity", "TypeValue", "TypeValue", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 8 );
			base.AddElementFieldMapping( "ActionGridColumnEntity", "RelativeTable", "RelativeTable", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 9 );
			base.AddElementFieldMapping( "ActionGridColumnEntity", "RelativeColumn", "RelativeColumn", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 10 );
			base.AddElementFieldMapping( "ActionGridColumnEntity", "RelativeSearchColumn", "RelativeSearchColumn", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 11 );
			base.AddElementFieldMapping( "ActionGridColumnEntity", "CreateDate", "CreateDate", false, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 12 );
			base.AddElementFieldMapping( "ActionGridColumnEntity", "ColumnLegnth", "ColumnLegnth", true, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 13 );
			base.AddElementFieldMapping( "ActionGridColumnEntity", "ColumnNullAble", "ColumnNullAble", false, (int)SqlDbType.Bit, 0, 0, 0, false, "", null, typeof(System.Boolean), 14 );
			base.AddElementFieldMapping( "ActionGridColumnEntity", "ShowType", "ShowType", true, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 15 );
			base.AddElementFieldMapping( "ActionGridColumnEntity", "ColumnType", "ColumnType", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 16 );
		}
		/// <summary>Inits ColumnToActionEntity's mappings</summary>
		private void InitColumnToActionEntityMappings()
		{
			base.AddElementMapping( "ColumnToActionEntity", "CARMS", @"dbo", "ColumnToAction", 11 );
			base.AddElementFieldMapping( "ColumnToActionEntity", "Oid", "OID", false, (int)SqlDbType.Int, 0, 0, 10, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 0 );
			base.AddElementFieldMapping( "ColumnToActionEntity", "ActionId", "ActionId", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 1 );
			base.AddElementFieldMapping( "ColumnToActionEntity", "TableName", "TableName", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 2 );
			base.AddElementFieldMapping( "ColumnToActionEntity", "ColumnName", "ColumnName", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 3 );
			base.AddElementFieldMapping( "ColumnToActionEntity", "ColumnType", "ColumnType", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 4 );
			base.AddElementFieldMapping( "ColumnToActionEntity", "Title", "Title", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 5 );
			base.AddElementFieldMapping( "ColumnToActionEntity", "TypeValue", "TypeValue", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 6 );
			base.AddElementFieldMapping( "ColumnToActionEntity", "SortIndex", "SortIndex", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 7 );
			base.AddElementFieldMapping( "ColumnToActionEntity", "RelativeTable", "RelativeTable", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 8 );
			base.AddElementFieldMapping( "ColumnToActionEntity", "RelativeColumn", "RelativeColumn", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 9 );
			base.AddElementFieldMapping( "ColumnToActionEntity", "RelativeSearchColumn", "RelativeSearchColumn", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 10 );
		}
		/// <summary>Inits CompanyEntity's mappings</summary>
		private void InitCompanyEntityMappings()
		{
			base.AddElementMapping( "CompanyEntity", "CARMS", @"dbo", "Company", 23 );
			base.AddElementFieldMapping( "CompanyEntity", "CompanyId", "CompanyID", false, (int)SqlDbType.Int, 0, 0, 10, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 0 );
			base.AddElementFieldMapping( "CompanyEntity", "CompanyCode", "CompanyCode", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 1 );
			base.AddElementFieldMapping( "CompanyEntity", "ProductType", "ProductType", true, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 2 );
			base.AddElementFieldMapping( "CompanyEntity", "Skype", "Skype", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 3 );
			base.AddElementFieldMapping( "CompanyEntity", "CompanyName", "CompanyName", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 4 );
			base.AddElementFieldMapping( "CompanyEntity", "ResponsePerson", "ResponsePerson", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 5 );
			base.AddElementFieldMapping( "CompanyEntity", "Tel", "Tel", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 6 );
			base.AddElementFieldMapping( "CompanyEntity", "Fax", "Fax", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 7 );
			base.AddElementFieldMapping( "CompanyEntity", "Email", "Email", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 8 );
			base.AddElementFieldMapping( "CompanyEntity", "ContactPerson", "ContactPerson", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 9 );
			base.AddElementFieldMapping( "CompanyEntity", "ContactTel", "ContactTel", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 10 );
			base.AddElementFieldMapping( "CompanyEntity", "ContactEmail", "ContactEmail", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 11 );
			base.AddElementFieldMapping( "CompanyEntity", "Tax", "Tax", true, (int)SqlDbType.Decimal, 0, 2, 18, false, "", null, typeof(System.Decimal), 12 );
			base.AddElementFieldMapping( "CompanyEntity", "JieZhangDate", "JieZhangDate", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 13 );
			base.AddElementFieldMapping( "CompanyEntity", "HourSalary", "HourSalary", true, (int)SqlDbType.Decimal, 0, 2, 18, false, "", null, typeof(System.Decimal), 14 );
			base.AddElementFieldMapping( "CompanyEntity", "ServiceIdcard", "ServiceIDCard", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 15 );
			base.AddElementFieldMapping( "CompanyEntity", "ServiceName", "ServiceName", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 16 );
			base.AddElementFieldMapping( "CompanyEntity", "TimeSeperate", "TimeSeperate", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 17 );
			base.AddElementFieldMapping( "CompanyEntity", "CustomerServerId", "CustomerServerID", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 18 );
			base.AddElementFieldMapping( "CompanyEntity", "Vd10", "VD10", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 19 );
			base.AddElementFieldMapping( "CompanyEntity", "SequeId", "SequeID", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 20 );
			base.AddElementFieldMapping( "CompanyEntity", "BackupDays", "BackupDays", true, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 21 );
			base.AddElementFieldMapping( "CompanyEntity", "LogonStatus", "LogonStatus", true, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 22 );
		}
		/// <summary>Inits ConfigurationEntity's mappings</summary>
		private void InitConfigurationEntityMappings()
		{
			base.AddElementMapping( "ConfigurationEntity", "CARMS", @"dbo", "Configuration", 3 );
			base.AddElementFieldMapping( "ConfigurationEntity", "Name", "Name", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 0 );
			base.AddElementFieldMapping( "ConfigurationEntity", "Value", "Value", true, (int)SqlDbType.NVarChar, 500, 0, 0, false, "", null, typeof(System.String), 1 );
			base.AddElementFieldMapping( "ConfigurationEntity", "Oid", "OID", false, (int)SqlDbType.Int, 0, 0, 10, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 2 );
		}
		/// <summary>Inits CountryEntity's mappings</summary>
		private void InitCountryEntityMappings()
		{
			base.AddElementMapping( "CountryEntity", "CARMS", @"dbo", "Country", 4 );
			base.AddElementFieldMapping( "CountryEntity", "CountryId", "CountryID", false, (int)SqlDbType.Int, 0, 0, 10, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 0 );
			base.AddElementFieldMapping( "CountryEntity", "CountryName", "CountryName", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 1 );
			base.AddElementFieldMapping( "CountryEntity", "IsActive", "IsActive", false, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 2 );
			base.AddElementFieldMapping( "CountryEntity", "CountryCode", "countryCode", false, (int)SqlDbType.NVarChar, 10, 0, 0, false, "", null, typeof(System.String), 3 );
		}
		/// <summary>Inits CustomerEntity's mappings</summary>
		private void InitCustomerEntityMappings()
		{
			base.AddElementMapping( "CustomerEntity", "CARMS", @"dbo", "Customer", 38 );
			base.AddElementFieldMapping( "CustomerEntity", "VId", "v_id", false, (int)SqlDbType.Int, 0, 0, 10, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 0 );
			base.AddElementFieldMapping( "CustomerEntity", "VKahao", "v_kahao", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 1 );
			base.AddElementFieldMapping( "CustomerEntity", "VName", "v_name", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 2 );
			base.AddElementFieldMapping( "CustomerEntity", "VSex", "v_sex", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 3 );
			base.AddElementFieldMapping( "CustomerEntity", "VBirthday", "v_birthday", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 4 );
			base.AddElementFieldMapping( "CustomerEntity", "VPaperNumber", "v_paper_number", true, (int)SqlDbType.NVarChar, 100, 0, 0, false, "", null, typeof(System.String), 5 );
			base.AddElementFieldMapping( "CustomerEntity", "VPhone", "v_phone", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 6 );
			base.AddElementFieldMapping( "CustomerEntity", "VTel", "v_tel", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 7 );
			base.AddElementFieldMapping( "CustomerEntity", "VEmail", "v_email", true, (int)SqlDbType.NVarChar, 100, 0, 0, false, "", null, typeof(System.String), 8 );
			base.AddElementFieldMapping( "CustomerEntity", "VSkype", "v_skype", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 9 );
			base.AddElementFieldMapping( "CustomerEntity", "VFadress", "v_fadress", true, (int)SqlDbType.NVarChar, 500, 0, 0, false, "", null, typeof(System.String), 10 );
			base.AddElementFieldMapping( "CustomerEntity", "VTadress", "v_tadress", true, (int)SqlDbType.NVarChar, 500, 0, 0, false, "", null, typeof(System.String), 11 );
			base.AddElementFieldMapping( "CustomerEntity", "VPost", "v_post", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 12 );
			base.AddElementFieldMapping( "CustomerEntity", "VChexi", "v_chexi", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 13 );
			base.AddElementFieldMapping( "CustomerEntity", "VColor", "v_color", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 14 );
			base.AddElementFieldMapping( "CustomerEntity", "VHao", "v_hao", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 15 );
			base.AddElementFieldMapping( "CustomerEntity", "VChesm", "v_chesm", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 16 );
			base.AddElementFieldMapping( "CustomerEntity", "VChepai", "v_chepai", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 17 );
			base.AddElementFieldMapping( "CustomerEntity", "Pwd", "pwd", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 18 );
			base.AddElementFieldMapping( "CustomerEntity", "VLptime", "v_lptime", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 19 );
			base.AddElementFieldMapping( "CustomerEntity", "Type", "type", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 20 );
			base.AddElementFieldMapping( "CustomerEntity", "TTime", "t_time", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 21 );
			base.AddElementFieldMapping( "CustomerEntity", "VBname", "v_bname", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 22 );
			base.AddElementFieldMapping( "CustomerEntity", "VXz", "v_xz", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 23 );
			base.AddElementFieldMapping( "CustomerEntity", "VBmoney", "v_bmoney", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 24 );
			base.AddElementFieldMapping( "CustomerEntity", "VToubtime", "v_toubtime", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 25 );
			base.AddElementFieldMapping( "CustomerEntity", "VPaydate", "v_paydate", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 26 );
			base.AddElementFieldMapping( "CustomerEntity", "PaymentConditionId", "PaymentConditionID", true, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 27 );
			base.AddElementFieldMapping( "CustomerEntity", "VLagio", "v_lagio", true, (int)SqlDbType.Decimal, 0, 2, 18, false, "", null, typeof(System.Decimal), 28 );
			base.AddElementFieldMapping( "CustomerEntity", "VAgio", "v_agio", true, (int)SqlDbType.Decimal, 0, 2, 18, false, "", null, typeof(System.Decimal), 29 );
			base.AddElementFieldMapping( "CustomerEntity", "VJifen", "v_jifen", true, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 30 );
			base.AddElementFieldMapping( "CustomerEntity", "CSpend", "c_spend", true, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 31 );
			base.AddElementFieldMapping( "CustomerEntity", "VRank", "v_rank", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 32 );
			base.AddElementFieldMapping( "CustomerEntity", "VState", "v_state", true, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 33 );
			base.AddElementFieldMapping( "CustomerEntity", "VRemk", "v_remk", true, (int)SqlDbType.NText, 1073741823, 0, 0, false, "", null, typeof(System.String), 34 );
			base.AddElementFieldMapping( "CustomerEntity", "FDate", "f_date", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 35 );
			base.AddElementFieldMapping( "CustomerEntity", "Login", "Login", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 36 );
			base.AddElementFieldMapping( "CustomerEntity", "VGz", "v_gz", true, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 37 );
		}
		/// <summary>Inits DepartmentEntity's mappings</summary>
		private void InitDepartmentEntityMappings()
		{
			base.AddElementMapping( "DepartmentEntity", "CARMS", @"dbo", "Department", 2 );
			base.AddElementFieldMapping( "DepartmentEntity", "DepartmentId", "DepartmentID", false, (int)SqlDbType.Int, 0, 0, 10, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 0 );
			base.AddElementFieldMapping( "DepartmentEntity", "DepartmentName", "DepartmentName", false, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 1 );
		}
		/// <summary>Inits DictionaryEntity's mappings</summary>
		private void InitDictionaryEntityMappings()
		{
			base.AddElementMapping( "DictionaryEntity", "CARMS", @"dbo", "Dictionary", 5 );
			base.AddElementFieldMapping( "DictionaryEntity", "Oid", "OID", false, (int)SqlDbType.Int, 0, 0, 10, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 0 );
			base.AddElementFieldMapping( "DictionaryEntity", "CategoryId", "CategoryID", true, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 1 );
			base.AddElementFieldMapping( "DictionaryEntity", "Name", "Name", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 2 );
			base.AddElementFieldMapping( "DictionaryEntity", "SortIndex", "SortIndex", false, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 3 );
			base.AddElementFieldMapping( "DictionaryEntity", "CreateDate", "CreateDate", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 4 );
		}
		/// <summary>Inits DictionaryCategoryEntity's mappings</summary>
		private void InitDictionaryCategoryEntityMappings()
		{
			base.AddElementMapping( "DictionaryCategoryEntity", "CARMS", @"dbo", "DictionaryCategory", 4 );
			base.AddElementFieldMapping( "DictionaryCategoryEntity", "Oid", "OID", false, (int)SqlDbType.Int, 0, 0, 10, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 0 );
			base.AddElementFieldMapping( "DictionaryCategoryEntity", "Name", "Name", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 1 );
			base.AddElementFieldMapping( "DictionaryCategoryEntity", "CreateDate", "CreateDate", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 2 );
			base.AddElementFieldMapping( "DictionaryCategoryEntity", "IsShow", "IsShow", false, (int)SqlDbType.Bit, 0, 0, 0, false, "", null, typeof(System.Boolean), 3 );
		}
		/// <summary>Inits G100Entity's mappings</summary>
		private void InitG100EntityMappings()
		{
			base.AddElementMapping( "G100Entity", "CARMS", @"dbo", "G100", 14 );
			base.AddElementFieldMapping( "G100Entity", "G1001", "G100-1", true, (int)SqlDbType.NVarChar, 100, 0, 0, false, "", null, typeof(System.String), 0 );
			base.AddElementFieldMapping( "G100Entity", "G1002", "G100-2", true, (int)SqlDbType.NVarChar, 100, 0, 0, false, "", null, typeof(System.String), 1 );
			base.AddElementFieldMapping( "G100Entity", "G1003", "G100-3", true, (int)SqlDbType.NText, 1073741823, 0, 0, false, "", null, typeof(System.String), 2 );
			base.AddElementFieldMapping( "G100Entity", "G1004", "G100-4", true, (int)SqlDbType.NVarChar, 100, 0, 0, false, "", null, typeof(System.String), 3 );
			base.AddElementFieldMapping( "G100Entity", "G1005", "G100-5", true, (int)SqlDbType.NVarChar, 100, 0, 0, false, "", null, typeof(System.String), 4 );
			base.AddElementFieldMapping( "G100Entity", "G1006", "G100-6", true, (int)SqlDbType.NVarChar, 100, 0, 0, false, "", null, typeof(System.String), 5 );
			base.AddElementFieldMapping( "G100Entity", "G1007", "G100-7", true, (int)SqlDbType.NVarChar, 100, 0, 0, false, "", null, typeof(System.String), 6 );
			base.AddElementFieldMapping( "G100Entity", "G1008", "G100-8", true, (int)SqlDbType.NVarChar, 100, 0, 0, false, "", null, typeof(System.String), 7 );
			base.AddElementFieldMapping( "G100Entity", "G1009", "G100-9", true, (int)SqlDbType.NVarChar, 100, 0, 0, false, "", null, typeof(System.String), 8 );
			base.AddElementFieldMapping( "G100Entity", "Gid", "GID", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 9 );
			base.AddElementFieldMapping( "G100Entity", "ParentId", "ParentID", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 10 );
			base.AddElementFieldMapping( "G100Entity", "G10010", "G100-10", true, (int)SqlDbType.NVarChar, 100, 0, 0, false, "", null, typeof(System.String), 11 );
			base.AddElementFieldMapping( "G100Entity", "CreateDate", "CreateDate", false, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 12 );
			base.AddElementFieldMapping( "G100Entity", "IsView", "IsView", false, (int)SqlDbType.Bit, 0, 0, 0, false, "", null, typeof(System.Boolean), 13 );
		}
		/// <summary>Inits G102Entity's mappings</summary>
		private void InitG102EntityMappings()
		{
			base.AddElementMapping( "G102Entity", "CARMS", @"dbo", "G102", 17 );
			base.AddElementFieldMapping( "G102Entity", "G1021", "G102-1", true, (int)SqlDbType.VarChar, 4, 0, 0, false, "", null, typeof(System.String), 0 );
			base.AddElementFieldMapping( "G102Entity", "G1022", "G102-2", true, (int)SqlDbType.NVarChar, 100, 0, 0, false, "", null, typeof(System.String), 1 );
			base.AddElementFieldMapping( "G102Entity", "G1023", "G102-3", true, (int)SqlDbType.NVarChar, 100, 0, 0, false, "", null, typeof(System.String), 2 );
			base.AddElementFieldMapping( "G102Entity", "G1024", "G102-4", true, (int)SqlDbType.NVarChar, 100, 0, 0, false, "", null, typeof(System.String), 3 );
			base.AddElementFieldMapping( "G102Entity", "G1025", "G102-5", true, (int)SqlDbType.NVarChar, 100, 0, 0, false, "", null, typeof(System.String), 4 );
			base.AddElementFieldMapping( "G102Entity", "G1026", "G102-6", true, (int)SqlDbType.NVarChar, 100, 0, 0, false, "", null, typeof(System.String), 5 );
			base.AddElementFieldMapping( "G102Entity", "G1027", "G102-7", true, (int)SqlDbType.NVarChar, 100, 0, 0, false, "", null, typeof(System.String), 6 );
			base.AddElementFieldMapping( "G102Entity", "G1028", "G102-8", true, (int)SqlDbType.NVarChar, 100, 0, 0, false, "", null, typeof(System.String), 7 );
			base.AddElementFieldMapping( "G102Entity", "G1029", "G102-9", true, (int)SqlDbType.NVarChar, 100, 0, 0, false, "", null, typeof(System.String), 8 );
			base.AddElementFieldMapping( "G102Entity", "G10210", "G102-10", true, (int)SqlDbType.NVarChar, 100, 0, 0, false, "", null, typeof(System.String), 9 );
			base.AddElementFieldMapping( "G102Entity", "G10211", "G102-11", true, (int)SqlDbType.NVarChar, 100, 0, 0, false, "", null, typeof(System.String), 10 );
			base.AddElementFieldMapping( "G102Entity", "Gid", "GID", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 11 );
			base.AddElementFieldMapping( "G102Entity", "G10212", "G102-12", true, (int)SqlDbType.NVarChar, 100, 0, 0, false, "", null, typeof(System.String), 12 );
			base.AddElementFieldMapping( "G102Entity", "G10213", "G102-13", true, (int)SqlDbType.NVarChar, 100, 0, 0, false, "", null, typeof(System.String), 13 );
			base.AddElementFieldMapping( "G102Entity", "G10214", "G102-14", true, (int)SqlDbType.NVarChar, 100, 0, 0, false, "", null, typeof(System.String), 14 );
			base.AddElementFieldMapping( "G102Entity", "G10215", "G102-15", true, (int)SqlDbType.NVarChar, 100, 0, 0, false, "", null, typeof(System.String), 15 );
			base.AddElementFieldMapping( "G102Entity", "G10216", "G102-16", true, (int)SqlDbType.NVarChar, 100, 0, 0, false, "", null, typeof(System.String), 16 );
		}
		/// <summary>Inits G103Entity's mappings</summary>
		private void InitG103EntityMappings()
		{
			base.AddElementMapping( "G103Entity", "CARMS", @"dbo", "G103", 12 );
			base.AddElementFieldMapping( "G103Entity", "G1031", "G103-1", true, (int)SqlDbType.VarChar, 4, 0, 0, false, "", null, typeof(System.String), 0 );
			base.AddElementFieldMapping( "G103Entity", "G1032", "G103-2", true, (int)SqlDbType.VarChar, 200, 0, 0, false, "", null, typeof(System.String), 1 );
			base.AddElementFieldMapping( "G103Entity", "G1033", "G103-3", true, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 2 );
			base.AddElementFieldMapping( "G103Entity", "G1034", "G103-4", true, (int)SqlDbType.VarChar, 8, 0, 0, false, "", null, typeof(System.String), 3 );
			base.AddElementFieldMapping( "G103Entity", "G1035", "G103-5", true, (int)SqlDbType.VarChar, 8, 0, 0, false, "", null, typeof(System.String), 4 );
			base.AddElementFieldMapping( "G103Entity", "G1036", "G103-6", true, (int)SqlDbType.Bit, 0, 0, 0, false, "", null, typeof(System.Boolean), 5 );
			base.AddElementFieldMapping( "G103Entity", "G1037", "G103-7", true, (int)SqlDbType.VarChar, 16, 0, 0, false, "", null, typeof(System.String), 6 );
			base.AddElementFieldMapping( "G103Entity", "G1038", "G103-8", true, (int)SqlDbType.NVarChar, 1000, 0, 0, false, "", null, typeof(System.String), 7 );
			base.AddElementFieldMapping( "G103Entity", "G1039", "G103-9", true, (int)SqlDbType.VarChar, 8, 0, 0, false, "", null, typeof(System.String), 8 );
			base.AddElementFieldMapping( "G103Entity", "G10310", "G103-10", true, (int)SqlDbType.VarChar, 50, 0, 0, false, "", null, typeof(System.String), 9 );
			base.AddElementFieldMapping( "G103Entity", "G10311", "G103-11", true, (int)SqlDbType.NVarChar, 1000, 0, 0, false, "", null, typeof(System.String), 10 );
			base.AddElementFieldMapping( "G103Entity", "G10312", "G103-12", true, (int)SqlDbType.NVarChar, 1000, 0, 0, false, "", null, typeof(System.String), 11 );
		}
		/// <summary>Inits G131Entity's mappings</summary>
		private void InitG131EntityMappings()
		{
			base.AddElementMapping( "G131Entity", "CARMS", @"dbo", "G131", 4 );
			base.AddElementFieldMapping( "G131Entity", "G1311", "G131-1", true, (int)SqlDbType.VarChar, 30, 0, 0, false, "", null, typeof(System.String), 0 );
			base.AddElementFieldMapping( "G131Entity", "G1312", "G131-2", true, (int)SqlDbType.VarChar, 16, 0, 0, false, "", null, typeof(System.String), 1 );
			base.AddElementFieldMapping( "G131Entity", "G1313", "G131-3", true, (int)SqlDbType.VarChar, 7, 0, 0, false, "", null, typeof(System.String), 2 );
			base.AddElementFieldMapping( "G131Entity", "Gid", "GID", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 3 );
		}
		/// <summary>Inits G132Entity's mappings</summary>
		private void InitG132EntityMappings()
		{
			base.AddElementMapping( "G132Entity", "CARMS", @"dbo", "G132", 8 );
			base.AddElementFieldMapping( "G132Entity", "G1321", "G132-1", true, (int)SqlDbType.VarChar, 16, 0, 0, false, "", null, typeof(System.String), 0 );
			base.AddElementFieldMapping( "G132Entity", "G1322", "G132-2", true, (int)SqlDbType.VarChar, 4, 0, 0, false, "", null, typeof(System.String), 1 );
			base.AddElementFieldMapping( "G132Entity", "G1323", "G132-3", true, (int)SqlDbType.VarChar, 50, 0, 0, false, "", null, typeof(System.String), 2 );
			base.AddElementFieldMapping( "G132Entity", "G1324", "G132-4", true, (int)SqlDbType.VarChar, 20, 0, 0, false, "", null, typeof(System.String), 3 );
			base.AddElementFieldMapping( "G132Entity", "G1325", "G132-5", true, (int)SqlDbType.VarChar, 50, 0, 0, false, "", null, typeof(System.String), 4 );
			base.AddElementFieldMapping( "G132Entity", "G1326", "G132-6", true, (int)SqlDbType.VarChar, 4, 0, 0, false, "", null, typeof(System.String), 5 );
			base.AddElementFieldMapping( "G132Entity", "Gid", "GID", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 6 );
			base.AddElementFieldMapping( "G132Entity", "IsStartFlow", "IsStartFlow", false, (int)SqlDbType.Bit, 0, 0, 0, false, "", null, typeof(System.Boolean), 7 );
		}
		/// <summary>Inits GlossaryEntity's mappings</summary>
		private void InitGlossaryEntityMappings()
		{
			base.AddElementMapping( "GlossaryEntity", "CARMS", @"dbo", "Glossary", 3 );
			base.AddElementFieldMapping( "GlossaryEntity", "GlossaryId", "GlossaryID", false, (int)SqlDbType.VarChar, 100, 0, 0, false, "", null, typeof(System.String), 0 );
			base.AddElementFieldMapping( "GlossaryEntity", "LanguageId", "LanguageID", false, (int)SqlDbType.VarChar, 50, 0, 0, false, "", null, typeof(System.String), 1 );
			base.AddElementFieldMapping( "GlossaryEntity", "GlossaryValue", "GlossaryValue", false, (int)SqlDbType.NVarChar, 200, 0, 0, false, "", null, typeof(System.String), 2 );
		}
		/// <summary>Inits LogEntity's mappings</summary>
		private void InitLogEntityMappings()
		{
			base.AddElementMapping( "LogEntity", "CARMS", @"dbo", "Log", 10 );
			base.AddElementFieldMapping( "LogEntity", "LogId", "LogId", false, (int)SqlDbType.Int, 0, 0, 10, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 0 );
			base.AddElementFieldMapping( "LogEntity", "Source", "Source", false, (int)SqlDbType.NVarChar, 500, 0, 0, false, "", null, typeof(System.String), 1 );
			base.AddElementFieldMapping( "LogEntity", "UserName", "UserName", false, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 2 );
			base.AddElementFieldMapping( "LogEntity", "Message", "Message", false, (int)SqlDbType.NText, 1073741823, 0, 0, false, "", null, typeof(System.String), 3 );
			base.AddElementFieldMapping( "LogEntity", "LogTime", "LogTime", false, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 4 );
			base.AddElementFieldMapping( "LogEntity", "Category", "Category", false, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 5 );
			base.AddElementFieldMapping( "LogEntity", "LogOutTime", "LogOutTime", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 6 );
			base.AddElementFieldMapping( "LogEntity", "Duration", "Duration", true, (int)SqlDbType.Decimal, 0, 2, 18, false, "", null, typeof(System.Decimal), 7 );
			base.AddElementFieldMapping( "LogEntity", "SessionId", "SessionID", false, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 8 );
			base.AddElementFieldMapping( "LogEntity", "VistorIp", "VistorIP", false, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 9 );
		}
		/// <summary>Inits MailEntity's mappings</summary>
		private void InitMailEntityMappings()
		{
			base.AddElementMapping( "MailEntity", "CARMS", @"dbo", "Mail", 7 );
			base.AddElementFieldMapping( "MailEntity", "MailId", "MailID", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 0 );
			base.AddElementFieldMapping( "MailEntity", "MailTo", "MailTo", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 1 );
			base.AddElementFieldMapping( "MailEntity", "CcTo", "CcTo", false, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 2 );
			base.AddElementFieldMapping( "MailEntity", "BccTo", "BccTo", false, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 3 );
			base.AddElementFieldMapping( "MailEntity", "Subject", "Subject", false, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 4 );
			base.AddElementFieldMapping( "MailEntity", "MailBody", "MailBody", false, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 5 );
			base.AddElementFieldMapping( "MailEntity", "IfSent", "IfSent", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 6 );
		}
		/// <summary>Inits MailTaskEntity's mappings</summary>
		private void InitMailTaskEntityMappings()
		{
			base.AddElementMapping( "MailTaskEntity", "CARMS", @"dbo", "MailTask", 14 );
			base.AddElementFieldMapping( "MailTaskEntity", "MailId", "MailID", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 0 );
			base.AddElementFieldMapping( "MailTaskEntity", "MailTo", "MailTo", true, (int)SqlDbType.NVarChar, 100, 0, 0, false, "", null, typeof(System.String), 1 );
			base.AddElementFieldMapping( "MailTaskEntity", "MailCc", "MailCC", true, (int)SqlDbType.NVarChar, 100, 0, 0, false, "", null, typeof(System.String), 2 );
			base.AddElementFieldMapping( "MailTaskEntity", "MailBcc", "MailBcc", true, (int)SqlDbType.NVarChar, 100, 0, 0, false, "", null, typeof(System.String), 3 );
			base.AddElementFieldMapping( "MailTaskEntity", "Detail", "Detail", true, (int)SqlDbType.NText, 1073741823, 0, 0, false, "", null, typeof(System.String), 4 );
			base.AddElementFieldMapping( "MailTaskEntity", "CreateDate", "CreateDate", false, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 5 );
			base.AddElementFieldMapping( "MailTaskEntity", "SendDate", "SendDate", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 6 );
			base.AddElementFieldMapping( "MailTaskEntity", "CreateUserName", "CreateUserName", false, (int)SqlDbType.NVarChar, 100, 0, 0, false, "", null, typeof(System.String), 7 );
			base.AddElementFieldMapping( "MailTaskEntity", "Subject", "Subject", true, (int)SqlDbType.NVarChar, 500, 0, 0, false, "", null, typeof(System.String), 8 );
			base.AddElementFieldMapping( "MailTaskEntity", "Status", "Status", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 9 );
			base.AddElementFieldMapping( "MailTaskEntity", "Deleted", "Deleted", false, (int)SqlDbType.Bit, 0, 0, 0, false, "", null, typeof(System.Boolean), 10 );
			base.AddElementFieldMapping( "MailTaskEntity", "SendTimes", "SendTimes", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 11 );
			base.AddElementFieldMapping( "MailTaskEntity", "SendError", "SendError", true, (int)SqlDbType.NText, 1073741823, 0, 0, false, "", null, typeof(System.String), 12 );
			base.AddElementFieldMapping( "MailTaskEntity", "RelativeId", "RelativeID", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 13 );
		}
		/// <summary>Inits MessageEntity's mappings</summary>
		private void InitMessageEntityMappings()
		{
			base.AddElementMapping( "MessageEntity", "CARMS", @"dbo", "Message", 9 );
			base.AddElementFieldMapping( "MessageEntity", "MessageId", "MessageID", false, (int)SqlDbType.Int, 0, 0, 10, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 0 );
			base.AddElementFieldMapping( "MessageEntity", "TemplateId", "TemplateID", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 1 );
			base.AddElementFieldMapping( "MessageEntity", "Subject", "Subject", false, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 2 );
			base.AddElementFieldMapping( "MessageEntity", "Content", "Content", false, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 3 );
			base.AddElementFieldMapping( "MessageEntity", "TargetUserId", "TargetUserID", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 4 );
			base.AddElementFieldMapping( "MessageEntity", "ReportHeaderId", "ReportHeaderID", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 5 );
			base.AddElementFieldMapping( "MessageEntity", "CreateDate", "CreateDate", false, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 6 );
			base.AddElementFieldMapping( "MessageEntity", "IsActive", "IsActive", false, (int)SqlDbType.Bit, 0, 0, 0, false, "", null, typeof(System.Boolean), 7 );
			base.AddElementFieldMapping( "MessageEntity", "OriginButtonEventId", "OriginButtonEventID", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 8 );
		}
		/// <summary>Inits ReportCategoryEntity's mappings</summary>
		private void InitReportCategoryEntityMappings()
		{
			base.AddElementMapping( "ReportCategoryEntity", "CARMS", @"dbo", "ReportCategory", 11 );
			base.AddElementFieldMapping( "ReportCategoryEntity", "ReportCategoryId", "ReportCategoryID", false, (int)SqlDbType.Int, 0, 0, 10, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 0 );
			base.AddElementFieldMapping( "ReportCategoryEntity", "ReportCategoryName", "ReportCategoryName", false, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 1 );
			base.AddElementFieldMapping( "ReportCategoryEntity", "CreateDate", "CreateDate", false, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 2 );
			base.AddElementFieldMapping( "ReportCategoryEntity", "ReportCategoryType", "ReportCategoryType", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 3 );
			base.AddElementFieldMapping( "ReportCategoryEntity", "BodyTableName", "BodyTableName", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 4 );
			base.AddElementFieldMapping( "ReportCategoryEntity", "CreationUrl", "CreationUrl", false, (int)SqlDbType.NVarChar, 200, 0, 0, false, "", null, typeof(System.String), 5 );
			base.AddElementFieldMapping( "ReportCategoryEntity", "ApproveUserId", "ApproveUserID", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 6 );
			base.AddElementFieldMapping( "ReportCategoryEntity", "ViewUrl", "ViewUrl", true, (int)SqlDbType.NVarChar, 200, 0, 0, false, "", null, typeof(System.String), 7 );
			base.AddElementFieldMapping( "ReportCategoryEntity", "G1307", "G130-7", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 8 );
			base.AddElementFieldMapping( "ReportCategoryEntity", "G1308", "G130-8", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 9 );
			base.AddElementFieldMapping( "ReportCategoryEntity", "IsFlowStart", "IsFlowStart", false, (int)SqlDbType.Bit, 0, 0, 0, false, "", null, typeof(System.Boolean), 10 );
		}
		/// <summary>Inits ReportCategoryToTemplateEntity's mappings</summary>
		private void InitReportCategoryToTemplateEntityMappings()
		{
			base.AddElementMapping( "ReportCategoryToTemplateEntity", "CARMS", @"dbo", "ReportCategoryToTemplate", 4 );
			base.AddElementFieldMapping( "ReportCategoryToTemplateEntity", "ReportCategoryId", "ReportCategoryID", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 0 );
			base.AddElementFieldMapping( "ReportCategoryToTemplateEntity", "TemplateId", "TemplateID", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 1 );
			base.AddElementFieldMapping( "ReportCategoryToTemplateEntity", "ButtonEventId", "ButtonEventID", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 2 );
			base.AddElementFieldMapping( "ReportCategoryToTemplateEntity", "ActionType", "ActionType", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 3 );
		}
		/// <summary>Inits ReportFlowEntity's mappings</summary>
		private void InitReportFlowEntityMappings()
		{
			base.AddElementMapping( "ReportFlowEntity", "CARMS", @"dbo", "ReportFlow", 6 );
			base.AddElementFieldMapping( "ReportFlowEntity", "ReportFlowId", "ReportFlowID", false, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 0 );
			base.AddElementFieldMapping( "ReportFlowEntity", "FlowName", "FlowName", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 1 );
			base.AddElementFieldMapping( "ReportFlowEntity", "OrginReportNumber", "OrginReportNumber", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 2 );
			base.AddElementFieldMapping( "ReportFlowEntity", "FlowStepId", "FlowStep", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 3 );
			base.AddElementFieldMapping( "ReportFlowEntity", "FlowStatus", "FlowStatus", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 4 );
			base.AddElementFieldMapping( "ReportFlowEntity", "IsActive", "IsActive", false, (int)SqlDbType.Bit, 0, 0, 0, false, "", null, typeof(System.Boolean), 5 );
		}
		/// <summary>Inits ReportHeaderEntity's mappings</summary>
		private void InitReportHeaderEntityMappings()
		{
			base.AddElementMapping( "ReportHeaderEntity", "CARMS", @"dbo", "ReportHeader", 12 );
			base.AddElementFieldMapping( "ReportHeaderEntity", "ReportHeaderId", "ReportHeaderID", false, (int)SqlDbType.Int, 0, 0, 10, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 0 );
			base.AddElementFieldMapping( "ReportHeaderEntity", "ReportCategoryId", "ReportCategoryID", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 1 );
			base.AddElementFieldMapping( "ReportHeaderEntity", "CreateDate", "CreateDate", false, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 2 );
			base.AddElementFieldMapping( "ReportHeaderEntity", "ApplyUserId", "ApplyUserID", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 3 );
			base.AddElementFieldMapping( "ReportHeaderEntity", "TargetUserId", "TargetUserID", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 4 );
			base.AddElementFieldMapping( "ReportHeaderEntity", "CreationUrl", "CreationUrl", false, (int)SqlDbType.NVarChar, 200, 0, 0, false, "", null, typeof(System.String), 5 );
			base.AddElementFieldMapping( "ReportHeaderEntity", "ViewUrl", "ViewUrl", true, (int)SqlDbType.NVarChar, 200, 0, 0, false, "", null, typeof(System.String), 6 );
			base.AddElementFieldMapping( "ReportHeaderEntity", "Status", "Status", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 7 );
			base.AddElementFieldMapping( "ReportHeaderEntity", "IsActive", "IsActive", false, (int)SqlDbType.Bit, 0, 0, 0, false, "", null, typeof(System.Boolean), 8 );
			base.AddElementFieldMapping( "ReportHeaderEntity", "Comment", "Comment", true, (int)SqlDbType.NText, 1073741823, 0, 0, false, "", null, typeof(System.String), 9 );
			base.AddElementFieldMapping( "ReportHeaderEntity", "ReportCode", "ReportCode", false, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 10 );
			base.AddElementFieldMapping( "ReportHeaderEntity", "ReportFlowId", "ReportFlowID", true, (int)SqlDbType.UniqueIdentifier, 0, 0, 0, false, "", null, typeof(System.Guid), 11 );
		}
		/// <summary>Inits ReportOneEntity's mappings</summary>
		private void InitReportOneEntityMappings()
		{
			base.AddElementMapping( "ReportOneEntity", "CARMS", @"dbo", "ReportOne", 3 );
			base.AddElementFieldMapping( "ReportOneEntity", "ReportOneId", "ReportOneID", false, (int)SqlDbType.Int, 0, 0, 10, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 0 );
			base.AddElementFieldMapping( "ReportOneEntity", "ReportHeaderId", "ReportHeaderID", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 1 );
			base.AddElementFieldMapping( "ReportOneEntity", "ReportOneName", "ReportOneName", false, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 2 );
		}
		/// <summary>Inits ReportPropertyEntity's mappings</summary>
		private void InitReportPropertyEntityMappings()
		{
			base.AddElementMapping( "ReportPropertyEntity", "CARMS", @"dbo", "ReportProperty", 15 );
			base.AddElementFieldMapping( "ReportPropertyEntity", "PropertyId", "PropertyID", false, (int)SqlDbType.Int, 0, 0, 10, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 0 );
			base.AddElementFieldMapping( "ReportPropertyEntity", "ReportCategoryId", "ReportCategoryID", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 1 );
			base.AddElementFieldMapping( "ReportPropertyEntity", "PropertyName", "PropertyName", false, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 2 );
			base.AddElementFieldMapping( "ReportPropertyEntity", "Title", "Title", false, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 3 );
			base.AddElementFieldMapping( "ReportPropertyEntity", "PropertyType", "PropertyType", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 4 );
			base.AddElementFieldMapping( "ReportPropertyEntity", "PropertyDictCategoryId", "PropertyDictCategoryID", true, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 5 );
			base.AddElementFieldMapping( "ReportPropertyEntity", "RelativeTable", "RelativeTable", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 6 );
			base.AddElementFieldMapping( "ReportPropertyEntity", "RelativeColumn", "RelativeColumn", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 7 );
			base.AddElementFieldMapping( "ReportPropertyEntity", "RelativeSearchColumn", "RelativeSearchColumn", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 8 );
			base.AddElementFieldMapping( "ReportPropertyEntity", "CreateDate", "CreateDate", false, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 9 );
			base.AddElementFieldMapping( "ReportPropertyEntity", "IfRequireRemark", "IfRequireRemark", false, (int)SqlDbType.Bit, 0, 0, 0, false, "", null, typeof(System.Boolean), 10 );
			base.AddElementFieldMapping( "ReportPropertyEntity", "SortIndex", "SortIndex", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 11 );
			base.AddElementFieldMapping( "ReportPropertyEntity", "Colspan", "Colspan", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 12 );
			base.AddElementFieldMapping( "ReportPropertyEntity", "IfShowInGrid", "IfShowInGrid", false, (int)SqlDbType.Bit, 0, 0, 0, false, "", null, typeof(System.Boolean), 13 );
			base.AddElementFieldMapping( "ReportPropertyEntity", "IfAllowSort", "IfAllowSort", false, (int)SqlDbType.Bit, 0, 0, 0, false, "", null, typeof(System.Boolean), 14 );
		}
		/// <summary>Inits ReportStatusToButtonEventEntity's mappings</summary>
		private void InitReportStatusToButtonEventEntityMappings()
		{
			base.AddElementMapping( "ReportStatusToButtonEventEntity", "CARMS", @"dbo", "ReportStatusToButtonEvent", 2 );
			base.AddElementFieldMapping( "ReportStatusToButtonEventEntity", "ReportStatusId", "ReportStatusID", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 0 );
			base.AddElementFieldMapping( "ReportStatusToButtonEventEntity", "ButtonEventId", "ButtonEventID", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 1 );
		}
		/// <summary>Inits ReportTwoEntity's mappings</summary>
		private void InitReportTwoEntityMappings()
		{
			base.AddElementMapping( "ReportTwoEntity", "CARMS", @"dbo", "ReportTwo", 3 );
			base.AddElementFieldMapping( "ReportTwoEntity", "ReportTwoId", "ReportTwoID", false, (int)SqlDbType.Int, 0, 0, 10, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 0 );
			base.AddElementFieldMapping( "ReportTwoEntity", "ReportHeaderId", "ReportHeaderID", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 1 );
			base.AddElementFieldMapping( "ReportTwoEntity", "ReportTwoName", "ReportTwoName", false, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 2 );
		}
		/// <summary>Inits ReportValueEntity's mappings</summary>
		private void InitReportValueEntityMappings()
		{
			base.AddElementMapping( "ReportValueEntity", "CARMS", @"dbo", "ReportValue", 4 );
			base.AddElementFieldMapping( "ReportValueEntity", "ReportValueId", "ReportValueID", false, (int)SqlDbType.Int, 0, 0, 10, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 0 );
			base.AddElementFieldMapping( "ReportValueEntity", "ReportHeaderId", "ReportHeaderID", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 1 );
			base.AddElementFieldMapping( "ReportValueEntity", "ReportValue", "ReportValue", false, (int)SqlDbType.NVarChar, 200, 0, 0, false, "", null, typeof(System.String), 2 );
			base.AddElementFieldMapping( "ReportValueEntity", "PropertyId", "PropertyID", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 3 );
		}
		/// <summary>Inits RoleEntity's mappings</summary>
		private void InitRoleEntityMappings()
		{
			base.AddElementMapping( "RoleEntity", "CARMS", @"dbo", "Role", 3 );
			base.AddElementFieldMapping( "RoleEntity", "RoleId", "RoleID", false, (int)SqlDbType.Int, 0, 0, 10, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 0 );
			base.AddElementFieldMapping( "RoleEntity", "RoleName", "RoleName", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 1 );
			base.AddElementFieldMapping( "RoleEntity", "CreateDate", "CreateDate", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 2 );
		}
		/// <summary>Inits RoleActionEntity's mappings</summary>
		private void InitRoleActionEntityMappings()
		{
			base.AddElementMapping( "RoleActionEntity", "CARMS", @"dbo", "RoleAction", 2 );
			base.AddElementFieldMapping( "RoleActionEntity", "RoleId", "RoleID", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 0 );
			base.AddElementFieldMapping( "RoleActionEntity", "ActionId", "ActionID", false, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 1 );
		}
		/// <summary>Inits SalaryLevelEntity's mappings</summary>
		private void InitSalaryLevelEntityMappings()
		{
			base.AddElementMapping( "SalaryLevelEntity", "CARMS", @"dbo", "SalaryLevel", 6 );
			base.AddElementFieldMapping( "SalaryLevelEntity", "SalaryLevelId", "SalaryLevelID", false, (int)SqlDbType.Int, 0, 0, 10, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 0 );
			base.AddElementFieldMapping( "SalaryLevelEntity", "DepartmentId", "DepartmentID", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 1 );
			base.AddElementFieldMapping( "SalaryLevelEntity", "ZhiWuId", "ZhiWuID", true, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 2 );
			base.AddElementFieldMapping( "SalaryLevelEntity", "SalaryLevel", "SalaryLevel", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 3 );
			base.AddElementFieldMapping( "SalaryLevelEntity", "BasicSalary", "BasicSalary", true, (int)SqlDbType.Decimal, 0, 2, 18, false, "", null, typeof(System.Decimal), 4 );
			base.AddElementFieldMapping( "SalaryLevelEntity", "HourSalary", "HourSalary", true, (int)SqlDbType.Decimal, 0, 2, 18, false, "", null, typeof(System.Decimal), 5 );
		}
		/// <summary>Inits TemplateEntity's mappings</summary>
		private void InitTemplateEntityMappings()
		{
			base.AddElementMapping( "TemplateEntity", "CARMS", @"dbo", "Template", 17 );
			base.AddElementFieldMapping( "TemplateEntity", "TemplateId", "TemplateID", false, (int)SqlDbType.Int, 0, 0, 10, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 0 );
			base.AddElementFieldMapping( "TemplateEntity", "FromActionId", "FromActionID", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 1 );
			base.AddElementFieldMapping( "TemplateEntity", "ShowActionId", "ShowActionID", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 2 );
			base.AddElementFieldMapping( "TemplateEntity", "EventUserId", "EventUserID", true, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 3 );
			base.AddElementFieldMapping( "TemplateEntity", "EventDepartmentId", "EventDepartmentID", true, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 4 );
			base.AddElementFieldMapping( "TemplateEntity", "TemplateName", "TemplateName", false, (int)SqlDbType.NVarChar, 200, 0, 0, false, "", null, typeof(System.String), 5 );
			base.AddElementFieldMapping( "TemplateEntity", "TemplateSubject", "TemplateSubject", false, (int)SqlDbType.NVarChar, 200, 0, 0, false, "", null, typeof(System.String), 6 );
			base.AddElementFieldMapping( "TemplateEntity", "TemplateContent", "TemplateContent", false, (int)SqlDbType.NText, 1073741823, 0, 0, false, "", null, typeof(System.String), 7 );
			base.AddElementFieldMapping( "TemplateEntity", "Remark", "Remark", true, (int)SqlDbType.NVarChar, 500, 0, 0, false, "", null, typeof(System.String), 8 );
			base.AddElementFieldMapping( "TemplateEntity", "CreateDate", "CreateDate", false, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 9 );
			base.AddElementFieldMapping( "TemplateEntity", "TargetUrl", "TargetUrl", true, (int)SqlDbType.NVarChar, 200, 0, 0, false, "", null, typeof(System.String), 10 );
			base.AddElementFieldMapping( "TemplateEntity", "Added", "Added", false, (int)SqlDbType.Bit, 0, 0, 0, false, "", null, typeof(System.Boolean), 11 );
			base.AddElementFieldMapping( "TemplateEntity", "Changes", "Changes", false, (int)SqlDbType.Bit, 0, 0, 0, false, "", null, typeof(System.Boolean), 12 );
			base.AddElementFieldMapping( "TemplateEntity", "Remove", "Remove", false, (int)SqlDbType.Bit, 0, 0, 0, false, "", null, typeof(System.Boolean), 13 );
			base.AddElementFieldMapping( "TemplateEntity", "Printing", "Printing", false, (int)SqlDbType.Bit, 0, 0, 0, false, "", null, typeof(System.Boolean), 14 );
			base.AddElementFieldMapping( "TemplateEntity", "Export", "Export", false, (int)SqlDbType.Bit, 0, 0, 0, false, "", null, typeof(System.Boolean), 15 );
			base.AddElementFieldMapping( "TemplateEntity", "ToConfirm", "ToConfirm", false, (int)SqlDbType.Bit, 0, 0, 0, false, "", null, typeof(System.Boolean), 16 );
		}
		/// <summary>Inits TemplateToReportCategoryEntity's mappings</summary>
		private void InitTemplateToReportCategoryEntityMappings()
		{
			base.AddElementMapping( "TemplateToReportCategoryEntity", "CARMS", @"dbo", "TemplateToReportCategory", 2 );
			base.AddElementFieldMapping( "TemplateToReportCategoryEntity", "ReportCategoryId", "ReportCategoryID", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 0 );
			base.AddElementFieldMapping( "TemplateToReportCategoryEntity", "TemplateId", "TemplateID", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 1 );
		}
		/// <summary>Inits UserEntity's mappings</summary>
		private void InitUserEntityMappings()
		{
			base.AddElementMapping( "UserEntity", "CARMS", @"dbo", "User", 49 );
			base.AddElementFieldMapping( "UserEntity", "UserId", "UserID", false, (int)SqlDbType.Int, 0, 0, 10, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 0 );
			base.AddElementFieldMapping( "UserEntity", "UserCode", "UserCode", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 1 );
			base.AddElementFieldMapping( "UserEntity", "DepartmentId", "DepartmentID", true, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 2 );
			base.AddElementFieldMapping( "UserEntity", "ZhiWu", "ZhiWu", true, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 3 );
			base.AddElementFieldMapping( "UserEntity", "BanZhi", "BanZhi", true, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 4 );
			base.AddElementFieldMapping( "UserEntity", "FullName", "FullName", false, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 5 );
			base.AddElementFieldMapping( "UserEntity", "Sex", "Sex", false, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 6 );
			base.AddElementFieldMapping( "UserEntity", "LoginName", "LoginName", false, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 7 );
			base.AddElementFieldMapping( "UserEntity", "Password", "Password", false, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 8 );
			base.AddElementFieldMapping( "UserEntity", "Address", "Address", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 9 );
			base.AddElementFieldMapping( "UserEntity", "Tel", "Tel", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 10 );
			base.AddElementFieldMapping( "UserEntity", "Mobile", "Mobile", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 11 );
			base.AddElementFieldMapping( "UserEntity", "Email", "Email", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 12 );
			base.AddElementFieldMapping( "UserEntity", "CreateDate", "CreateDate", false, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 13 );
			base.AddElementFieldMapping( "UserEntity", "IsActived", "IsActived", false, (int)SqlDbType.Bit, 0, 0, 0, false, "", null, typeof(System.Boolean), 14 );
			base.AddElementFieldMapping( "UserEntity", "BloodType", "BloodType", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 15 );
			base.AddElementFieldMapping( "UserEntity", "Marriage", "Marriage", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 16 );
			base.AddElementFieldMapping( "UserEntity", "Idcard", "IDCard", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 17 );
			base.AddElementFieldMapping( "UserEntity", "BirthDay", "BirthDay", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 18 );
			base.AddElementFieldMapping( "UserEntity", "Degree", "Degree", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 19 );
			base.AddElementFieldMapping( "UserEntity", "Address1", "Address1", true, (int)SqlDbType.NVarChar, 200, 0, 0, false, "", null, typeof(System.String), 20 );
			base.AddElementFieldMapping( "UserEntity", "Address2", "Address2", true, (int)SqlDbType.NVarChar, 200, 0, 0, false, "", null, typeof(System.String), 21 );
			base.AddElementFieldMapping( "UserEntity", "UrgentPerson", "UrgentPerson", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 22 );
			base.AddElementFieldMapping( "UserEntity", "UrgentTel", "UrgentTel", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 23 );
			base.AddElementFieldMapping( "UserEntity", "Bank", "Bank", true, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 24 );
			base.AddElementFieldMapping( "UserEntity", "BankIdCard", "BankIdCard", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 25 );
			base.AddElementFieldMapping( "UserEntity", "FamillyNumber", "FamillyNumber", true, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 26 );
			base.AddElementFieldMapping( "UserEntity", "SalaryLevel", "SalaryLevel", true, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 27 );
			base.AddElementFieldMapping( "UserEntity", "ZhiWuAllowance", "ZhiWuAllowance", false, (int)SqlDbType.Decimal, 0, 2, 18, false, "", null, typeof(System.Decimal), 28 );
			base.AddElementFieldMapping( "UserEntity", "JianBaoAllowance", "JianBaoAllowance", false, (int)SqlDbType.Decimal, 0, 2, 18, false, "", null, typeof(System.Decimal), 29 );
			base.AddElementFieldMapping( "UserEntity", "LaoBaoAllowance", "LaoBaoAllowance", false, (int)SqlDbType.Decimal, 0, 2, 18, false, "", null, typeof(System.Decimal), 30 );
			base.AddElementFieldMapping( "UserEntity", "HuoShiAllowance", "HuoShiAllowance", false, (int)SqlDbType.Decimal, 0, 2, 18, false, "", null, typeof(System.Decimal), 31 );
			base.AddElementFieldMapping( "UserEntity", "JiShuAllowance", "JiShuAllowance", false, (int)SqlDbType.Decimal, 0, 2, 18, false, "", null, typeof(System.Decimal), 32 );
			base.AddElementFieldMapping( "UserEntity", "QiTaAllowance", "QiTaAllowance", false, (int)SqlDbType.Decimal, 0, 2, 18, false, "", null, typeof(System.Decimal), 33 );
			base.AddElementFieldMapping( "UserEntity", "JiaoTongAllowance", "JiaoTongAllowance", false, (int)SqlDbType.Decimal, 0, 2, 18, false, "", null, typeof(System.Decimal), 34 );
			base.AddElementFieldMapping( "UserEntity", "TongXunAllowance", "TongXunAllowance", false, (int)SqlDbType.Decimal, 0, 2, 18, false, "", null, typeof(System.Decimal), 35 );
			base.AddElementFieldMapping( "UserEntity", "QuanQinAllowance", "QuanQinAllowance", false, (int)SqlDbType.Decimal, 0, 2, 18, false, "", null, typeof(System.Decimal), 36 );
			base.AddElementFieldMapping( "UserEntity", "LaoBaoSelfResponse", "LaoBaoSelfResponse", false, (int)SqlDbType.Decimal, 0, 2, 18, false, "", null, typeof(System.Decimal), 37 );
			base.AddElementFieldMapping( "UserEntity", "JianBaoSelfResponse", "JianBaoSelfResponse", false, (int)SqlDbType.Decimal, 0, 2, 18, false, "", null, typeof(System.Decimal), 38 );
			base.AddElementFieldMapping( "UserEntity", "HuoShiSelfResponse", "HuoShiSelfResponse", false, (int)SqlDbType.Decimal, 0, 2, 18, false, "", null, typeof(System.Decimal), 39 );
			base.AddElementFieldMapping( "UserEntity", "FamilySelfResponse", "FamilySelfResponse", false, (int)SqlDbType.Decimal, 0, 2, 18, false, "", null, typeof(System.Decimal), 40 );
			base.AddElementFieldMapping( "UserEntity", "TouBaoDate", "TouBaoDate", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 41 );
			base.AddElementFieldMapping( "UserEntity", "TuiBaoDate", "TuiBaoDate", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 42 );
			base.AddElementFieldMapping( "UserEntity", "DaoZhiDate", "DaoZhiDate", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 43 );
			base.AddElementFieldMapping( "UserEntity", "LiZhiDate", "LiZhiDate", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 44 );
			base.AddElementFieldMapping( "UserEntity", "JiFen", "JiFen", true, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 45 );
			base.AddElementFieldMapping( "UserEntity", "Status", "Status", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 46 );
			base.AddElementFieldMapping( "UserEntity", "Regex", "Regex", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 47 );
			base.AddElementFieldMapping( "UserEntity", "Remark", "Remark", true, (int)SqlDbType.NText, 1073741823, 0, 0, false, "", null, typeof(System.String), 48 );
		}
		/// <summary>Inits UserActionEntity's mappings</summary>
		private void InitUserActionEntityMappings()
		{
			base.AddElementMapping( "UserActionEntity", "CARMS", @"dbo", "UserAction", 2 );
			base.AddElementFieldMapping( "UserActionEntity", "UserId", "UserID", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 0 );
			base.AddElementFieldMapping( "UserActionEntity", "ActionId", "ActionID", false, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 1 );
		}
		/// <summary>Inits UserPermissionEntity's mappings</summary>
		private void InitUserPermissionEntityMappings()
		{
			base.AddElementMapping( "UserPermissionEntity", "CARMS", @"dbo", "UserPermission", 13 );
			base.AddElementFieldMapping( "UserPermissionEntity", "UserId", "UserID", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 0 );
			base.AddElementFieldMapping( "UserPermissionEntity", "ReportId", "ReportCategoryID", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 1 );
			base.AddElementFieldMapping( "UserPermissionEntity", "FormName", "FormName", true, (int)SqlDbType.VarChar, 50, 0, 0, false, "", null, typeof(System.String), 2 );
			base.AddElementFieldMapping( "UserPermissionEntity", "FormMode", "FormMode", true, (int)SqlDbType.VarChar, 50, 0, 0, false, "", null, typeof(System.String), 3 );
			base.AddElementFieldMapping( "UserPermissionEntity", "Added", "Added", false, (int)SqlDbType.Bit, 0, 0, 0, false, "", null, typeof(System.Boolean), 4 );
			base.AddElementFieldMapping( "UserPermissionEntity", "Changes", "Changes", false, (int)SqlDbType.Bit, 0, 0, 0, false, "", null, typeof(System.Boolean), 5 );
			base.AddElementFieldMapping( "UserPermissionEntity", "Remove", "Remove", false, (int)SqlDbType.Bit, 0, 0, 0, false, "", null, typeof(System.Boolean), 6 );
			base.AddElementFieldMapping( "UserPermissionEntity", "Printing", "Printing", false, (int)SqlDbType.Bit, 0, 0, 0, false, "", null, typeof(System.Boolean), 7 );
			base.AddElementFieldMapping( "UserPermissionEntity", "Export", "Export", false, (int)SqlDbType.Bit, 0, 0, 0, false, "", null, typeof(System.Boolean), 8 );
			base.AddElementFieldMapping( "UserPermissionEntity", "ToConfirm", "ToConfirm", false, (int)SqlDbType.Bit, 0, 0, 0, false, "", null, typeof(System.Boolean), 9 );
			base.AddElementFieldMapping( "UserPermissionEntity", "LimitSender", "LimitSender", false, (int)SqlDbType.Bit, 0, 0, 0, false, "", null, typeof(System.Boolean), 10 );
			base.AddElementFieldMapping( "UserPermissionEntity", "LimitChecker", "LimitChecker", false, (int)SqlDbType.Bit, 0, 0, 0, false, "", null, typeof(System.Boolean), 11 );
			base.AddElementFieldMapping( "UserPermissionEntity", "AllowStatus", "AllowStatus", true, (int)SqlDbType.NVarChar, 50, 0, 0, false, "", null, typeof(System.String), 12 );
		}
		/// <summary>Inits UserRoleEntity's mappings</summary>
		private void InitUserRoleEntityMappings()
		{
			base.AddElementMapping( "UserRoleEntity", "CARMS", @"dbo", "UserRole", 2 );
			base.AddElementFieldMapping( "UserRoleEntity", "UserId", "UserID", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 0 );
			base.AddElementFieldMapping( "UserRoleEntity", "RoleId", "RoleID", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 1 );
		}

	}
}